<div id="recommend">
    <?php foreach($recommend as $key => $val): ?>
        <div class="blogs">
            <figure><img width="200" height="150" src="<?php echo base_url() . $val['thumb'] ?>" alt="" /></figure>
            <ul>
                <h3><a href=""><?php echo $val['title'] ?></a></h3>
                <p><?php echo $val['info'] ?></p>
                <p class="author">
                    <span class="lm f_l"><a href=""><?php echo $val['cname'] ?></a></span>
                    <span class="dtime f_l"><?php echo date('Y-m-d',$val['time']) ?></span>
                    <span class="viewnum f_r">浏览（<a href=""><?php echo $val['click'] ?>)</a></span>
                    <span class="pingl f_r">评论（<a href=""><?php echo $val['recommend'] ?></a>）</span>
                </p>
            </ul>
        </div>
    <?php endforeach; ?>
    <div class="page"><?php if(isset($link)) {echo $link;} ?></div>
</div>